package com.cn.demo.mapper;

import com.cn.demo.entity.Design;
import com.cn.demo.entity.DesignTeam;
import com.cn.demo.entity.DesignTeamExample;
import java.util.List;

import com.cn.demo.entity.Student;
import com.cn.demo.utils.Result;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Component;

@Component
public interface DesignTeamMapper {
    long countByExample(DesignTeamExample example);

    int deleteByExample(DesignTeamExample example);

    int deleteByPrimaryKey(String designId);

    int insert(DesignTeam record);

    int insertSelective(DesignTeam record);

    List<DesignTeam> selectByExample(DesignTeamExample example);

    DesignTeam selectByPrimaryKey(String designId);

    int updateByExampleSelective(@Param("record") DesignTeam record, @Param("example") DesignTeamExample example);

    int updateByExample(@Param("record") DesignTeam record, @Param("example") DesignTeamExample example);

    int updateByPrimaryKeySelective(DesignTeam record);

    int updateByPrimaryKey(DesignTeam record);

    List<Design> getOrganizationStudentDesignTeamEvaluate( @Param("organizationId")String organizationId, @Param("designId")String  designId, @Param("subject")String subject);
    List<DesignTeam> getDesignTeamByDesignId(String designId);

    int joinTeam(@Param("designId")String designId, @Param("studentId")String studentId);

    int delete(@Param("designId")String designId, @Param("studentId")String studentId);

}